﻿
@{
    ViewBag.Title = "易嘻嘻登录";
    Layout = "";
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - 小说管理系统</title>
    @Styles.Render("~/Content/css")
    @Styles.Render("~/Content/css/valid")
</head>
<body class="manage-backgruand">
    <div class="container body-content">
        <div class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" id="LoginModal">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <h4 class="modal-title" id="gridSystemModalLabel">后台登陆</h4>
                    </div>
                    <div class="modal-body">
                        <form id="defaultForm" method="post" action="http://localhost:58228/Api/Account/Login">
                            <label for="UserName" class="control-label">账号:</label>
                            <div class="form-group">
                                <input type="text" class="form-control" name="UserName" placeholder="请输入您的账号" />
                            </div>
                            <label for="PassWord" class="control-label">密码:</label>
                            <div class="form-group">
                                <input type="password" class="form-control" name="PassWord" placeholder="请输入您的密码" />
                            </div>
                            <div class="modal-footer">
                                <button type="submit" class="btn btn-primary">登录</button>
                            </div>
                        </form>
                        @*<div class="alert alert-danger">错误！请进行一些更改。</div>*@
                    </div>
                    
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @Scripts.Render("~/bundles/bootstrapval")
    <script type="text/javascript" src="/Scripts/Site/login.js"></script>
    <script>
        $(function () {
            $('#LoginModal').modal({
                show: true
            });

            $('#LoginModal').on('hidden.bs.modal', function (e) {
                $('#LoginModal').modal({
                    show: true
                });
            });
        });
    </script>
</body>
</html>

